#!/bin/env python

import time
import random

fileTest1 = open("tem.txt","a")
for i in range(10):
	fileTest1.write(time.strftime('%Y-%m-%d %H:%M:%S'))
	fileTest1.write(' ' + str(random.randint(0, i)) + '\n')
fileTest1.close()